package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;

/**
 * 地址对象 erp_address
 *
 * @author wutao
 * @date 2024-05-18
 */
@Getter
@Setter
@TableName("erp_address")
@ApiModel(value = "地址表信息", description = "地址表信息")
public class ErpAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty ("id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 地点编码
     */
    @ApiModelProperty("地点编码")
    @TableField("address_code")
    @Excel(name = "地点编码")
    private String addressCode;

    /**
     * 地点名称
     */
    @ApiModelProperty("地点名称")
    @TableField("address_name")
    @Excel(name = "地点名称")
    private String addressName;

    /**
     * 详细地址
     */
    @ApiModelProperty("详细地址")
    @TableField("detil_address")
    @Excel(name = "详细地址")
    private String detilAddress;

    /**
     * 运输提前期
     */
    @ApiModelProperty("运输提前期")
    @TableField("trans_lead_time")
    @Excel(name = "运输提前期")
    private String transLeadTime;

    /**
     * 联系人
     */
    @ApiModelProperty("联系人")
    @TableField("contacts")
    @Excel(name = "联系人")
    private String contacts;

    /**
     * 固定电话
     */
    @ApiModelProperty("固定电话")
    @TableField("fixed_phone")
    @Excel(name = "固定电话")
    private String fixedPhone;

    /**
     * 移动电话
     */
    @ApiModelProperty("移动电话")
    @TableField("phone")
    @Excel(name = "移动电话")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty("邮箱")
    @TableField("email")
    @Excel(name = "邮箱")
    private String email;

    /**
     * 默认类型（默认收货地址，默认开票地址，默认付款地址）
     */
    @TableField("default_type")
    @ApiModelProperty("默认类型")
    @Excel(name = "默认类型", readConverterExp = "默=认收货地址，默认开票地址，默认付款地址")
    private String defaultType;

    /**
     * 是否禁用
     */
    @ApiModelProperty("是否禁用")
    @TableField("is_used")
    @Excel(name = "是否禁用")
    private Long isUsed;

    /**
     * 业务id
     */
    @ApiModelProperty("业务id")
    @TableField("relation_id")
    @Excel(name = "业务id")
    private String relationId;

}
